<template>
	<view id="apps">
		
		
		
		<!-- form -->
		<view class="form">
			<view class="form_item">
				<text class="star">商品名称或服务名称</text>
				<input type="text" placeholder="请输入商品名称" placeholder-class="placeholder">
			</view>
			<view class="form_item">
				<text class="star">消费者手机号码</text>
				<input type="text" placeholder="请输入消费者手机号码" placeholder-class="placeholder">
			</view>
			<view class="form_item">
				<text class="star">现场实收金额</text>
				<input type="text" placeholder="请输入金额" placeholder-class="placeholder">
			</view>
			<view class="form_item">
				<text class="star">上传凭证</text>
				<view class="addimg">
					<view class="item">
						<view class="box">
							<image src="/static/images/add.png" mode="widthFix"></image>
						</view>
					</view>
				</view>
			</view>

		</view>
		
	
	
	
		<!-- 积分 -->
		<view class="jflist">
			<view class="item">
				<text>消费者可获得积分</text>
				<text class="num">0</text>
			</view>
			<view class="item">
				<text>商家可获得积分</text>
				<text class="num">0</text>
			</view>
		</view>

				
				
				
		<!-- btns -->
		<view class="btns">
			<button class="active">确认补单</button>
			<!-- <button>确认买单</button> -->
		</view>
				
				
				
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">

	page{
		background: #F3F3F3;
	}
	
	#apps{

		display: flex;
		flex-direction: column;
		
		// form
		.form{
			background: #fff;
			border-radius: 20px;
			margin: 34rpx 34rpx 0 34rpx;
			box-sizing: border-box;
			padding:20rpx 40rpx;
			
			.form_item{
				display: block;
				padding: 20rpx 0;
				position: relative;
				border-bottom: 1px rgba(153, 153, 153, .2) solid;
				&:last-of-type{
					border: 0;
				}
				text{
					font-size: 28rpx;
					color: #333;
					font-weight: bold;
					width: 120rpx;
					&::after{
						content: '*';
						color: $index_color;
					}
				}
				.placeholder{
					font-size: 28rpx;
					color: #999;
				}
				input{
					margin-top: 20rpx;
					flex: 1;
					text-align: left;
				}
				.price{
					color: $index_color;
					font-size: 32rpx;
					font-weight: bold;
				}
			}
			
		}
		
		
		// 上传图片
		.addimg{
			display: flex;
			align-items: center;
			padding: 20rpx 0;
			box-sizing: border-box;
			.item{
				flex: 1;
				text{
					font-size: 28rpx;
					color: #333;
					font-weight: bold;
					margin-bottom: 20rpx;
					display: block;
				}
				.box{
					background: #F3F3F3;
					width: 140rpx;
					height: 140rpx;
					border-radius: 20rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					image{
						width: 36rpx;
						height: auto;
					}
				}
			}
		}
		
		
		
		// btns
		.btns{
			margin: 100rpx 0 0rpx 0;
			padding: 0 90rpx;
			box-sizing: border-box;
			
			button{
				background: #DE4335;
				box-shadow: 0px 6rpx 12rpx rgba(222, 67, 53, 0.5);
				opacity: 1;
				border-radius: 44rpx;
				margin-bottom: 40rpx;
				color: #fff;
				font-weight: 36rpx;
				
				&.gray{
				background: #f6f6f6!important;
				box-shadow: 0px 6rpx 12rpx rgba(246, 246, 246, 0.5);
				color: #333;
				}
				
				&::after{
					border: 0;
				}
				&:hover{
					opacity: .9;
				}
				&.active{
					opacity: .5;
				}
				
			}
			
		}
		
		
		
		// 积分
		.jflist{
			background:#fff;
			border-radius: 40rpx;
			padding: 40rpx;
			box-sizing: border-box;
			margin: 34rpx 34rpx 0 34rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			box-sizing: border-box;
			text{
				font-size: 28rpx;
				color: #333;
				font-weight: bold;
				display: block;
				text-align: center;
			}
			.num{
				font-size: 64rpx;
				color: $index_color;
			}
		}
		
		
	}
	

</style>
